package main

import (
	"fmt"
	"time"
)

func worker(c chan int) {
	select {
	case <- c:
		fmt.Println("你好呀")

	case <- time.After(5 * time.Second):
		return

	}
}

func main() {
	c := make(chan int)
	worker(c)

}
